package com.szeastroc.config.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hi")
public class ConfigController {

	@Value("${security.user.name}")
	private String name;
	
	@Value("${eureka.client.serviceUrl.defaultZone}")
	private String defaultZone;
	
	@RequestMapping("getServerName")
	public String getServerName() {
		System.out.println(defaultZone);
		return name;
	}
}
